﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// ServiceBean 的摘要说明
/// </summary>
/// <author>Asura</author>
/// <properties>企业缴费服务项目</properties>


[Serializable]
public class FeeBean
{
    private long id;
    private long? pid;
    private string name;
    private string content;
    private string dest;
    private DateTime createTime;
    private DateTime cancelTime;
    private bool isDel;
    private decimal pay;
    private int amount;
    //private OrderBean order;
    private FeeBean parent;
    private List<FeeBean> children = new List<FeeBean>();


    public FeeBean()
    {  
    }
    /// <summary>
    /// get set方法
    /// </summary>
    public long Id { get; set; }
    public long? Pid { get; set; }
    public string Name { get; set; }
    public string Content { get; set; }
    public string Dest { get; set; }
    public DateTime CreateTime { get; set; }
    public DateTime CancelTime { get; set; }
    public bool IsDel { get; set; }
    public Decimal Pay { get; set; }
    public int Amount { get; set; }
    //public OrderBean Order { get; set; }
    public FeeBean Parent { get; set; }
    public List<FeeBean> Children
    {
        get
        {
            return children;
        }
    }

    public void Add(FeeBean fee)
    {
        this.children.Add(fee);
    }

    public bool isRoot()
    {
        return Pid == null ? true : false;
    }


}